package com.hos.hospital.service.impl;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hos.hospital.dao.AdminRepository;
import com.hos.hospital.entity.Admin;
import com.hos.hospital.entity.Doctor;
import com.hos.hospital.service.AdminService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImp implements AdminService  {
	
	@Autowired
	private AdminRepository  ar;

	@Override
	public List<Admin> findAll() {
		// TODO Auto-generated method stub
		return ar.findAll();
	}
	
      
	@Override
	public List<Admin> findAll(Admin admin) {
		// TODO Auto-generated method stub
		Example<Admin> example = Example.of(admin);
		return ar.findAll(example);
	}

	@Override
	public List<Admin> findAllById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void flush() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteInBatch(Integer id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteAllInBatch() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Admin getOne(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}
	

   
  
	
	
}
